package com.qf.fronted.service.impl;

import com.qf.fronted.mapper.AddAddressMapper;
import com.qf.fronted.service.AddAddressService;
import org.springframework.stereotype.Service;

/**
 * @Date: 2020/9/23 20:54
 * @Author: 何泽富
 * @Description :
 */
@Service
public class AddAddressServiceImpl implements AddAddressService {
    private AddAddressMapper addAddressMapper;

    public AddAddressServiceImpl(AddAddressMapper addAddressMapper) {
        this.addAddressMapper = addAddressMapper;
    }

    @Override
    public Integer addAddress(Integer id, String name, String address, String phone) {
        return addAddressMapper.addAddress(id,name,address,phone,0,1);
    }
}
